package lecture03.dowhileinf;

import java.util.Scanner;

//先做事，后判断条件
public class DoWhileInf {
    public static void main(String[] args) {
        int i = 0;
        int sum = 0;
        do {
            sum = sum + i;
            i++;
        }while (i < 10);
        System.out.println("sum="+sum);
    }
}
